home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / dmsetup.preinst < prev    next >
Text File  |  2008-10-20  |  520b  |  17 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installudev
  4. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  5.     if [ -e "/etc/udev/dmsetup.rules" ]; then
  6.         if [ "`md5sum \"/etc/udev/dmsetup.rules\" | sed -e \"s/ .*//\"`" = \
  7.              "`dpkg-query -W -f='${Conffiles}' dmsetup | sed -n -e \"\\\\' /etc/udev/dmsetup.rules's/.* //p\"`" ]
  8.         then
  9.             rm -f "/etc/udev/dmsetup.rules"
  10.         fi
  11.     fi
  12.     if [ -L "/etc/udev/rules.d/65-dmsetup.rules" ]; then
  13.         rm -f "/etc/udev/rules.d/65-dmsetup.rules"
  14.     fi
  15. fi
  16. # End automatically added section
  17.